home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: Calling a function in variable
- Date: 21 Mar 1996 13:48:09 -0500
- Organization: University of Maryland Baltimore County
- Message-ID: <4is899$r2i@umbc9.umbc.edu>
- References: <4ikjlq$71@Server2.swix.ch>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Aurelio Caliaro <caliaro@swix.ch> wrote:
- |> It is strange but I can't remember how I need to call a
- |> function whose address is in a variable.
- |> If the function address is in "(void*)Addr", how do I
- |> call it?
-
- You don't...Or more precisely you can't store a function address
- in a pointer to void. You can, however have a variable of function
- type (well actually pointer to function which works the same in ANSI C).
-
- Please read the FAQ. Particularly section 4.13...
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-